package io.renren.modules.communityService.conver;

import io.renren.modules.communityService.dto.DbDailyHealthCardDTO;
import io.renren.modules.communityService.dto.MiniAppDbDailyHealthCardSaveDTO;
import io.renren.modules.communityService.entity.DbDailyHealthCardEntity;
import io.renren.modules.communityService.vo.DbDailyHealthCardVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2020-02-07 12:36
 */
@Mapper
public interface DbDailyHealthCardConver {

    DbDailyHealthCardConver MAPPER =  Mappers.getMapper(DbDailyHealthCardConver.class);

    DbDailyHealthCardEntity converDTO(DbDailyHealthCardDTO dbDailyHealthCardDTO);

    List<DbDailyHealthCardEntity> converDTO(List<DbDailyHealthCardDTO> dbDailyHealthCardDTOs);

    DbDailyHealthCardVO conver(DbDailyHealthCardEntity dbDailyHealthCardEntities);

    List<DbDailyHealthCardVO> conver(List<DbDailyHealthCardEntity> dbDailyHealthCardEntities);


    DbDailyHealthCardEntity conver1(MiniAppDbDailyHealthCardSaveDTO dbDailyHealthCardEntities);

    List<DbDailyHealthCardEntity> conver1(List<MiniAppDbDailyHealthCardSaveDTO> dbDailyHealthCardEntities);
}
